package org.lemon.cla.converter;

import org.lemon.cla.enums.BookStatusEnum;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
class BookStatusEnumConverter implements Converter<String, BookStatusEnum> {
    @Override
    public BookStatusEnum convert(String source) {
        return BookStatusEnum.fromDescription(source);
    }
}